<?php include 'headers.php' ?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        

        <title></title>
    </head>
    <body>
        
        <form action="success.php" method="post">
            Name: <input type="text" name="fname" />
            Password: <input type="password" name="pass" />
           <input type="submit" name ="login" value="login" />
        </form>
        <?php
      if(isset($_POST['logout']))
      {                    
          unset($_SESSION['login']);
          setcookie('login', '', time()-3600);
      }

       ?>
    </body>
</html>
